﻿using QFramework;

namespace ProjectMyFarmAndShe
{
    public class EmailData
    {
        public string Title { get; private set; }
        public string Publisher { get; private set; }

        public string Info { get; private set; }
        //感谢信发送的日期
        public int EmailSendDay { get; private set; }
        public BindableProperty<bool> IsRead { get; private set; } = new BindableProperty<bool>();

        public EmailData WithTitle(string title)
        {
            Title = title;
            return this;
        }

        public EmailData WithPublisher(string publisher)
        {
            Publisher = publisher;
            return this;
        }

        public EmailData WithInfo(string info)
        {
            Info = info;
            return this;
        }

        public EmailData WithSendDay(int day)
        {
            EmailSendDay = day;
            return this;
        }

        public EmailData WithRead(bool isRead)
        {
            IsRead.Value = isRead;
            return this;
        }
    }
}